home *** CD-ROM | disk | FTP | other *** search
- -- background: 4916 from stack: in
- -- bmap block id: 4364
- -- flags: 4000
- -- background id: 0
- -- name: Tests
- ----- HyperTalk script -----
- on EnterTest
- Global ThePass,TheWeight
- ask "What is this tests weight?"
- Put it into field "Weight"
- if it is "" then
- answer "Do You Want to Delete This Test?" with "OK" or "Cancel"
- if it is "OK" then
- Domenu "Delete Card"
- Pop Card
- exit to hypercard
- else
- Put 1 into x
- end if
- Put it into TheWeight
- Put "" into TheNamesScores
- Put 1 into x
- Put number of lines in field "Scores"+1 into numtimes
- Repeat forever
- Put item 1 of line x of field "Scores" into Name
- Put item 2 of line x of TheNamesScores into Score
- Ask "Enter the grade for"&&Name with score
- if it is "" then
- Put x-1 into x
- else
- Put Name&","&it into newline
- Put newline into line x of TheNamesScores
- Put x+1 into x
- end if
- if x is numtimes then exit repeat
- if x is 0 then
- ask "What is this tests weight?" with field "Weight"
- if it is not empty then
- Put it into field "Weight"
- Put 1 into x
- else
- answer "Do You Want to Delete This Test?" with "OK" or "Cancel"
- if it is "OK" then
- Domenu "Delete Card"
- Pop Card
- exit to hypercard
- else
- Put 1 into x
- end if
- end if
- end if
-
- end repeat
- Put theNamesScores into field "Scores"
- Pop Card
- Put TheNamesScores into ThePass
- Herearegrades
- end entertest
-
-
-
- -- part 1 (field)
- -- low flags: 01
- -- high flags: 0000
- -- rect: left=215 top=25 right=43 bottom=439
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 2
- -- text size: 12
- -- style flags: 256
- -- line height: 16
- -- part name: Test Name
-
-
- -- part 2 (field)
- -- low flags: 01
- -- high flags: 0000
- -- rect: left=215 top=25 right=43 bottom=439
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 2
- -- text size: 12
- -- style flags: 256
- -- line height: 16
- -- part name: Test Name
-
-
- -- part 3 (field)
- -- low flags: 01
- -- high flags: 0000
- -- rect: left=214 top=45 right=62 bottom=439
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 2
- -- text size: 12
- -- style flags: 256
- -- line height: 16
- -- part name: Class Name
-
-
- -- part 4 (field)
- -- low flags: 01
- -- high flags: 0007
- -- rect: left=140 top=127 right=271 bottom=388
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 0
- -- font id: 2
- -- text size: 10
- -- style flags: 256
- -- line height: 13
- -- part name: Scores
-
-
- -- part 5 (button)
- -- low flags: 00
- -- high flags: 2000
- -- rect: left=265 top=278 right=301 bottom=295
- -- title width / last selected line: 0
- -- icon id / first selected line: 27009 / 27009
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: New Button
- ----- HyperTalk script -----
- on mouseUp
- go to next card of this bkgnd
- end mouseUp
-
-
-
- -- part 6 (button)
- -- low flags: 00
- -- high flags: 2000
- -- rect: left=231 top=278 right=301 bottom=261
- -- title width / last selected line: 0
- -- icon id / first selected line: 9301 / 9301
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: New Button
- ----- HyperTalk script -----
- on mouseUp
- go to previous card of this bkgnd
- end mouseUp
-
-
-
- -- part 7 (button)
- -- low flags: 00
- -- high flags: A000
- -- rect: left=8 top=25 right=70 bottom=75
- -- title width / last selected line: 0
- -- icon id / first selected line: 2162 / 2162
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Back to Class
- ----- HyperTalk script -----
- on mouseUp
- set lockscreen to true
- put field "Class Name" into holder
- go to First Card
- find holder in field "Class Name"
- click at 0,0
- end mouseUp
-
-
-
- -- part 9 (field)
- -- low flags: 01
- -- high flags: 0000
- -- rect: left=209 top=78 right=95 bottom=268
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 2
- -- text size: 12
- -- style flags: 256
- -- line height: 16
- -- part name: Weight
-